Repository navigation
libsircl: split libsircl_ep.so, modularize engine.c, share progress & add PTX - #408
Merged
Merged
Conversation
FujitsuPolycom
force-pushed
the
refactor/libsircl-modular-ep
branch
from
November 30, 2026 05:29
0af3330 to
e1f5c55
Compare
FujitsuPolycom
changed the base branch from
feat/libsircl-p2p-graph-and-sircl-ep
to
main
November 30, 2026 06:43
…t threads in dedicated pool test
FujitsuPolycom
marked this pull request as ready for review
November 30, 2026 06:43
FujitsuPolycom
force-pushed
the
refactor/libsircl-modular-ep
branch
from
November 30, 2026 06:43
91706b6 to
173c015
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Keep
libnccl.so.2(libsircl) 100% pure, modular, and MoE/framework-agnostic for vLLM, SGLang, and custom Torch/NCCL workloads; eliminate Grace CPU core contention across multi-communicator jobs; and add PTX forward-compatibility alongsidesm_120/sm_121SASS.What Changed
libsircl_ep.soout oflibnccl.so.2(exports.map,exports_ep.map,kernels/sircl_ep.cu,src/ep.c,src/ep_pack.c,sircl_ep_all2all.py): Move allsirclEp*symbols and MoE CUDA kernels into companionlibsircl_ep.soover a genericsirclP2pChannelExecbridge; updatesircl_ep_all2all.pyto fail closed iflibsircl_ep.sois absent.libsircl.sonow exports 0sirclEp*symbols.engine.c(spark_transport/libsircl/src/): Split the 5,434-line monolith intoengine_internal.h+ 7 hidden-visibility modules (engine.c,engine_env.c,engine_topo.c,engine_mem.c,engine_collectives.c,engine_p2p.c,engine_receipt.c).sircl_roce_proxy.c,sircl_p2p_proxy.c): Share RoCE/P2P progress threads across communicators by default with adaptive spin backoff (plus opt-in dedicated CPU-spread mode) so multi-communicator jobs stop piling spinning threads onto one Grace CPU core.Makefile,CMakeLists.txt): Documentlibsircl/src/transport/as canonical and add-gencode arch=compute_120,code=compute_120PTX alongsidesm_120/sm_121SASS.Verification
nvcc 13.3.73,gcc 13.3 -std=c11 -O2 -Wall -Wextra -Werror, RELRO/BIND_NOW/NX):make -j && make check: all 19 suites passed;check_entriesverified 358/358 kernel entries across 4 core + 1 EP fatbins (each containing PTXarch=120+ SASSsm_120/sm_121).tools/check_exports.py:libsircl.so146/146 declared symbols (0sirclEp*);libsircl_ep.soexports onlysirclEpWorkspaceBytes,sirclEpDispatch,sirclEpCombine.make check-asan: exit 0, 0 ASan/UBSan findings.cmake + ctest --output-on-failure: 19/19 passed (100%).pytest integrations/vllm/libsircl/: 81 passed, 2 skipped, 0 failed;ruff check0 errors.Risks / Follow-Ups
p2p_channels.py --case epagainst splitlibsircl_ep.soto confirm end-to-end runtime loading on Spark hardware.